﻿<%@ Page Title="" Language="C#" MasterPageFile="~/design_page/student/student.master" AutoEventWireup="true" CodeFile="student_show_post.aspx.cs" Inherits="design_page_student_Default" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

 <div id="showDiv" style="text-align: center; margin-right: auto; margin-left: auto; height: 166px;">
          <div style="text-align: center; margin-right: auto; margin-left: auto; width: 1070px;" >
        <table cellpadding="0" cellspacing="11" class="style19" 
                  
                  style="text-align: center; margin-top: auto; margin-bottom: auto; width: 1059px;">
            <tr>
                  <td style="width: 27px">
                      &nbsp;</td>
                  <td style="width: 761px">
                      &nbsp;</td>
            </tr>
            <tr>
                  <td style="width: 27px">
                      &nbsp;</td>
                  <td style="width: 761px">



                  <div id="main_homework" runat="server" style="width: 1001px">
                 


                      <asp:GridView ID="GridView_show_all_post" runat="server" CellPadding="4" ForeColor="#333333"
                          GridLines="None" Width="1000px" AutoGenerateColumns="False" DataKeyNames="_mHid"
                          OnRowCommand="Gridview_show_all_RowCommand" AllowPaging="True" 
                          onpageindexchanging="gridview_showall_pageindexchanging">
                          <Columns>
                              <asp:TemplateField HeaderText="留言板">
                                  <ItemTemplate>
                                      <asp:LinkButton ID="LinkButton2" runat="server" CommandName="all_post_read" CommandArgument="<%# ((GridViewRow) Container).RowIndex %>">阅读</asp:LinkButton>
                                  </ItemTemplate>
                              </asp:TemplateField>
                              <asp:TemplateField HeaderText="留言ID序号">
                                  <ItemTemplate>
                                      <asp:Label ID="dLabel_postid" runat="server" Text='<%# Bind("_post_id") %>'></asp:Label>
                                  </ItemTemplate>
                              </asp:TemplateField>
                              <asp:TemplateField HeaderText="留言标题">
                                  <ItemTemplate>
                                      <asp:Label ID="dLabel_homeworkname1" runat="server" Text='<%# Bind("_post_name") %>'></asp:Label>
                                  </ItemTemplate>
                              </asp:TemplateField>
                              <asp:TemplateField HeaderText="发布人ID">
                                  <ItemTemplate>
                                      <asp:Label ID="dLabel_homeworktime1" runat="server" Text='<%# Bind("_addresser_id") %>'></asp:Label>
                                  </ItemTemplate>
                              </asp:TemplateField>
                              <asp:TemplateField HeaderText="发布人名称">
                                  <ItemTemplate>
                                      <asp:Label ID="dLabel_homework_classid" runat="server" Text='<%# Bind("_addresser_name") %>'></asp:Label>
                                  </ItemTemplate>
                              </asp:TemplateField>
                              <asp:TemplateField HeaderText="发布时间">
                                  <ItemTemplate>
                                      <asp:Label ID="dLabel_detail_classname3" runat="server" Text='<%# Bind("_send_time") %>'></asp:Label>
                                  </ItemTemplate>
                              </asp:TemplateField>
                              <asp:TemplateField HeaderText="阅读次数">
                                  <ItemTemplate>
                                      <asp:Label ID="dLabel_detail_classname2" runat="server" Text='<%# Bind("_read_count") %>'></asp:Label>
                                  </ItemTemplate>
                              </asp:TemplateField>
                          </Columns>
                          <AlternatingRowStyle BackColor="White" />
                          <EditRowStyle BackColor="#2461BF" />
                          <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                          <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                          <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                          <RowStyle BackColor="#EFF3FB" />
                          <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                          <SortedAscendingCellStyle BackColor="#F5F7FB" />
                          <SortedAscendingHeaderStyle BackColor="#6D95E1" />
                          <SortedDescendingCellStyle BackColor="#E9EBEF" />
                          <SortedDescendingHeaderStyle BackColor="#4870BE" />
                      </asp:GridView>







                      <asp:GridView ID="GridView_show_my_post" runat="server" 
                          CellPadding="4" ForeColor="#333333" width="1000px"
                          GridLines="None" AutoGenerateColumns="False" 
                          AllowPaging="True" 
                          AllowSorting="True" PageSize="15" 
                          onrowcommand="Gridview_show_my_RowCommand" 
                          onpageindexchanging="gridvied_showmy_pageindexchanging">
                          <Columns>
                              <asp:TemplateField HeaderText="我的邮">
                                  <ItemTemplate>
                                      <asp:LinkButton ID="LinkButton2" runat="server" 
                                          CommandArgument="<%# ((GridViewRow) Container).RowIndex %>" 
                                          CommandName="my_post_read">阅读</asp:LinkButton>
                                  </ItemTemplate>
                              </asp:TemplateField>


                                <asp:TemplateField HeaderText="是否已读">
                                        <ItemTemplate>
                                    <asp:Label ID="dLabel_is_read" runat="server" ></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>



                              <asp:TemplateField HeaderText="邮件ID序号">
                                        <ItemTemplate>
                                    <asp:Label ID="dLabel_my_postid" runat="server" Text='<%# Bind("_post_id") %>'></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>


                                 <asp:TemplateField HeaderText="发布人id">
                                        <ItemTemplate>
                                    <asp:Label ID="dLabel_detail_stuid" runat="server" Text='<%# Bind("_addresser_id") %>'></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>

                                    <asp:TemplateField HeaderText="发布人名称">
                                        <ItemTemplate>
                                    <asp:Label ID="dLabel_detail_stuname" runat="server" Text='<%# Bind("_addresser_name") %>'></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>

                                     <asp:TemplateField HeaderText="发送时间">
                                        <ItemTemplate>
                                    <asp:Label ID="dLabel_detail_homeworkid" runat="server" Text='<%# Bind("_send_time") %>'></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>


                                  <asp:TemplateField HeaderText="我的邮">
                                  <ItemTemplate>
                                      <asp:LinkButton ID="LinkButton12" runat="server" 
                                          CommandArgument="<%# ((GridViewRow) Container).RowIndex %>" 
                                          CommandName="my_post_return">回复</asp:LinkButton>
                                  </ItemTemplate>
                              </asp:TemplateField>


                               <asp:TemplateField HeaderText="我的邮">
                                  <ItemTemplate>
                                      <asp:LinkButton ID="LinkButton3" runat="server" 
                                          CommandArgument="<%# ((GridViewRow) Container).RowIndex %>" 
                                          CommandName="my_post_detele">删除</asp:LinkButton>
                                  </ItemTemplate>
                              </asp:TemplateField>

                            

                          </Columns>




                              








                          <AlternatingRowStyle BackColor="White" />
                          <EditRowStyle BackColor="#2461BF" />
                          <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                          <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                          <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                          <RowStyle BackColor="#EFF3FB" />
                          <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                          <SortedAscendingCellStyle BackColor="#F5F7FB" />
                          <SortedAscendingHeaderStyle BackColor="#6D95E1" />
                          <SortedDescendingCellStyle BackColor="#E9EBEF" />
                          <SortedDescendingHeaderStyle BackColor="#4870BE" />
                      </asp:GridView>
                      </div>

                      <div id="detail_homework" runat="server">
                      <table border="0" cellspacing="0" cellpadding="0" style="width: 131%">
                      	  <tr>
                  <td style="width: 354px; width: 125px; vertical-align: top; text-align: right; height: 17px;" >
                              </td>
                  <td style="width: 722px; width: 40px; vertical-align: top; text-align: left; height: 17px;" >
                 </td>
            </tr>
                                 
            <tr>
                  <td style="width: 722px; text-align: left; vertical-align: top; ">
                  <div>
                      <asp:Label ID="Label1_student_answer" runat="server" Text="邮内容:" 
                          Visible="False"></asp:Label>
                  </div>
                  
                  <asp:TextBox ID="TextBox2" runat="server" Height="340px" TextMode="MultiLine" 
                          Width="992px" style="margin-left: 0px" Visible="False"></asp:TextBox>







                            <div>
                      <asp:Label ID="Label1" runat="server" Text="回复标题：" 
                          Visible="False"></asp:Label>
                  </div>
                  

                      <asp:TextBox ID="TextBox5" runat="server" Height="22px" TextMode="MultiLine" Width="992px"
                          Style="margin-left: 0px" Visible="False"></asp:TextBox>



                            <div>
                      <asp:Label ID="Label_teacher_answer" runat="server" Text="回复内容：" 
                          Visible="False"></asp:Label>
                  </div>
                  

                      <asp:TextBox ID="TextBox4" runat="server" Height="140px" TextMode="MultiLine" Width="992px"
                          Style="margin-left: 0px" Visible="False"></asp:TextBox>






                           <div>








                      <asp:Button ID="Button2" runat="server"  Text="回复" 
                          Width="90px" Visible="False" onclick="Button2_Click" />
                      <asp:Button ID="Button3" runat="server" Text="关闭" Width="90px" Visible="False" onclick="Button3_Click" 
                          />

                          

                


                         

                         

                          

                

                  
                                          
                 

                  </div>
                      
                      </td>
            </tr>
                                 

                                 
           <tr >
              
                  <td style="width: 722px; text-align: left; vertical-align: top; ">
                          <div>
                          </div>
                       
                           
                      <asp:Label ID="extren_stuid" runat="server" Text="隐藏标志当前阅读学生作业的id" 
                          Visible="False"></asp:Label>
                          <asp:Label ID="extren_homeid" runat="server" Text="隐藏标志当前学生的ID" 
                          Visible="False"></asp:Label>

                           <asp:Label ID="Label2" runat="server" Text="隐藏的标志是否要添加查阅次数" 
                          Visible="False"></asp:Label>
                      </td>
            </tr>
                 

                                 
            <tr>
                  <td style="width: 722px; text-align: left; vertical-align: top; ">
                   

                      </td>
            </tr>
                      </table>

                      </div>
                 </td>
            </tr>
                                 
            <tr>
                  <td style="width: 27px">
                      &nbsp;</td>
                  <td style="width: 761px">
                      &nbsp;</td>
                                 
            </tr>
          
                                 
            </table>
       </div> 
    </div>



</asp:Content>

